package com.gears_software.sxdc.dccx.ui.activity;

import android.app.Activity;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.GravityEnum;
import com.afollestad.materialdialogs.MaterialDialog;
import com.gears_software.sxdc.dccx.R;
import com.gears_software.sxdc.dccx.application.DCCXApplication;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.App;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import qiu.niorgai.StatusBarCompat;

/**
 * Created by SunMuran on 2017/8/5.
 */
@EActivity(R.layout.activity_jiashizheng_info_validation)
public class JiaShiZhengInfoValidationActivity extends Activity {
    @App
    DCCXApplication app;
    @ViewById
    TextView actionbar_title;
    @ViewById
    TextView back_icon;
    @ViewById
    TextView right_icon;
    @ViewById
    TextView txt_picture;
    @ViewById
    Button btn_submit;


    @AfterViews
    void created() {
        actionbar_title.setText("车主认证");
        initIconfont();
        StatusBarCompat.setStatusBarColor(this,ContextCompat.getColor(this, R.color.colorActionbar));

    }
    void initIconfont() {
        back_icon.setTypeface(app.iconfont);
        back_icon.setText(R.string.back_icon);
        right_icon.setVisibility(View.GONE);
        txt_picture.setTypeface(app.iconfont);
    }

    @Click
    void btn_submit() {
        new MaterialDialog.Builder(this)
                .title("提示")
                .titleGravity(GravityEnum.CENTER)
                .titleColorRes(R.color.colorFontGray)
                .content("车主认证信息会在48小时内完成审核，通过后即可发布行程。")
                .contentColorRes(R.color.colorFontGray)
                .positiveText("确定")
                .positiveColor(ContextCompat.getColor(this, R.color.colorFontBlue))
                .onPositive(new MaterialDialog.SingleButtonCallback() {
                    @Override
                    public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                        Intent intent = new Intent(JiaShiZhengInfoValidationActivity.this, JiaShiZhengAuthenticationActivity_.class);
                        startActivity(intent);
                    }
                }).show();
    }
}
